home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / CIncludes / AEPackObject.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  2.0 KB  |  100 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        AEPackObject.h
  3.  
  4.      Contains:    AppleEvents object packing Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1991-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __AEPACKOBJECT__
  18. #define __AEPACKOBJECT__
  19.  
  20. #ifndef __APPLEEVENTS__
  21. #include <AppleEvents.h>
  22. #endif
  23.  
  24.  
  25.  
  26. #if PRAGMA_ONCE
  27. #pragma once
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.  
  34. #if PRAGMA_IMPORT
  35. #pragma import on
  36. #endif
  37.  
  38. #if PRAGMA_STRUCT_ALIGN
  39.     #pragma options align=mac68k
  40. #elif PRAGMA_STRUCT_PACKPUSH
  41.     #pragma pack(push, 2)
  42. #elif PRAGMA_STRUCT_PACK
  43.     #pragma pack(2)
  44. #endif
  45.  
  46. /* These are the object packing routines.  */
  47. EXTERN_API( OSErr )
  48. CreateOffsetDescriptor            (long                     theOffset,
  49.                                  AEDesc *                theDescriptor);
  50.  
  51. EXTERN_API( OSErr )
  52. CreateCompDescriptor            (DescType                 comparisonOperator,
  53.                                  AEDesc *                operand1,
  54.                                  AEDesc *                operand2,
  55.                                  Boolean                 disposeInputs,
  56.                                  AEDesc *                theDescriptor);
  57.  
  58. EXTERN_API( OSErr )
  59. CreateLogicalDescriptor            (AEDescList *            theLogicalTerms,
  60.                                  DescType                 theLogicOperator,
  61.                                  Boolean                 disposeInputs,
  62.                                  AEDesc *                theDescriptor);
  63.  
  64.  
  65. EXTERN_API( OSErr )
  66. CreateObjSpecifier                (DescType                 desiredClass,
  67.                                  AEDesc *                theContainer,
  68.                                  DescType                 keyForm,
  69.                                  AEDesc *                keyData,
  70.                                  Boolean                 disposeInputs,
  71.                                  AEDesc *                objSpecifier);
  72.  
  73. EXTERN_API( OSErr )
  74. CreateRangeDescriptor            (AEDesc *                rangeStart,
  75.                                  AEDesc *                rangeStop,
  76.                                  Boolean                 disposeInputs,
  77.                                  AEDesc *                theDescriptor);
  78.  
  79.  
  80. #if PRAGMA_STRUCT_ALIGN
  81.     #pragma options align=reset
  82. #elif PRAGMA_STRUCT_PACKPUSH
  83.     #pragma pack(pop)
  84. #elif PRAGMA_STRUCT_PACK
  85.     #pragma pack()
  86. #endif
  87.  
  88. #ifdef PRAGMA_IMPORT_OFF
  89. #pragma import off
  90. #elif PRAGMA_IMPORT
  91. #pragma import reset
  92. #endif
  93.  
  94. #ifdef __cplusplus
  95. }
  96. #endif
  97.  
  98. #endif /* __AEPACKOBJECT__ */
  99.  
  100.